package com.ccc.boot.generator.controller;

import com.ccc.boot.generator.dto.TableDTO;
import com.ccc.boot.generator.response.TableResultResponse;
import com.ccc.boot.generator.service.TableService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

/**
 * 获取table
 *
 * @author superC
 * @date 2022/3/29
 * @version 0.1.0
 */

@RestController
@RequestMapping("/table")
public class TableController {

    @Resource
    private TableService tableService;

    /**
     * @Author superC
     * @Description： 获取列表数据
     * @Date: 2020/12/1 17:02
     * @Param params
     */
    @GetMapping("/pageList")
    public TableResultResponse<TableDTO> pageList(@RequestParam Map<String, Object> params) {
        return  tableService.queryList(params);
    }

}
